package oktx.participant;

import oktx.RemoteType;

/**
 * Created by huangdachao on 2018/5/21 14:26.
 */
public class JtaParticipant implements Participant {
    public static final String PRC_TRANSACTION_KEY = "X-TRANSACTION-ID";
    private String xid;
    private String ip;  // 远程服务IP
    private int port;   // 远程服务端口号
    private int timeout; // JTA远程事务超时时间，单位秒
    private RemoteType type;

    public String getXid() {
        return xid;
    }

    public void setXid(String xid) {
        this.xid = xid;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public RemoteType getType() {
        return type;
    }

    public void setType(RemoteType type) {
        this.type = type;
    }
}
